
%Get the user specified pressure file type and store it as a variable
FileTypeInput = get(handles.radiobutton2,'Value');
if get(handles.radiobutton3,'Value') == 1
    FileTypeInput = 0; % .txt (cvms)
elseif get(handles.radiobutton2,'Value') == 1
    FileTypeInput = 2; % .txt (xcel)
elseif get(handles.radiobutton4,'Value') == 1
    FileTypeInput = 1; % .xls
end

% Ensure only 1 button is selected
if (get(handles.radiobutton2,'Value') == 1 && get(handles.radiobutton3,'Value') == 1) || ...
        (get(handles.radiobutton2,'Value') == 1 && get(handles.radiobutton4,'Value') == 1) || ...
        (get(handles.radiobutton3,'Value') == 1 && get(handles.radiobutton4,'Value') == 1)
    set(handles.text17, 'String', 'Status: Error')
    set(handles.text21, 'String', 'Please choose a unique pressure file type')
    error('Please choose a unique pressure file type')
end


%Get the user specified flow (echo) file type and store it as a variable
EchoTypeNum = get(handles.jpegButton,'Value'); % 1 -> jpeg; 0 -> dicom

% Ensure only 1 button is selected
if get(handles.jpegButton,'Value') == get(handles.dicomButton,'Value')
    set(handles.text17, 'String', 'Status: Error')
    set(handles.text21, 'String', 'Please choose a unique pressure file type')
    error('Please choose a unique pressure file type')
end


%Get the user specified save location and input file location and store
%them as variables
SaveLocation = handles.SaveLocation;
InputFilesLocation = handles.InputFilesLocation;

%Store the handles for the intruction text and user input axes as variables
instructionText = handles.text21;
inputAxes = handles.axes22;

%Store the handels for the ejection duration text boxes as variables
percentErrorText = handles.text28;
P_ejectionDurationText = handles.text27;
F_ejectionDurationText = handles.text29;

%Determine whether user selected to upload data
if get(handles.checkbox1,'Value') == 1
    uploadFlag = 1; %Upload data
else
    uploadFlag = 0; %Don't upload data
end


